package com.vector.demo.mapper;

import com.vector.demo.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface StudentMapper {

    //判断学生用户是否存在
    Student checkStudent(String s_name,String s_pwd);

    //增加学生
    int addStudent(Student student);

    //删除学生
    Student dropStudentById(int s_id);

    //修改学生信息
    int modifyStudent(Student student);

    //查询学生
    Student selectStudentById(int s_id);

    //查询所有的学生
    List<Student> selectAllStudent();

}
